package com.kykj.kykj.service.impl;

import com.kykj.kykj.dao.UserFollowsDao;
import com.kykj.kykj.entity.UserFollowsEntity;
import com.kykj.kykj.service.UserFollowsService;
import com.kykj.kykj.vo.UserFollowsVo;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserFollowsServiceImpl implements UserFollowsService {
    @Resource
    private UserFollowsDao userFollowsDao;

    @Override
    public List<UserFollowsEntity> getUserFollowsList() {
        return userFollowsDao.getUserFollowsList();
    }

    @Override
    public int addUserFollows(UserFollowsVo userFollowsVo) {
        return userFollowsDao.addUserFollows(userFollowsVo);
    }

    @Override
    public int updateUserFollows(UserFollowsVo userFollowsVo) {
        return userFollowsDao.updateUserFollows(userFollowsVo);
    }

    @Override
    public int deleteUserFollows(int id) {
        return userFollowsDao.deleteUserFollows(id);
    }

    @Override
    public List<UserFollowsEntity> getUserFollowsByFollowerId(int followerId) {
        return userFollowsDao.getUserFollowsByFollowerId(followerId);
    }
}